<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>
<%String ctx = request.getContextPath(); %>

<div class="f_l margin1" style="width:100%">
    <table width="100%">
    	<tbody>
    		<tr align="center">
    			<td colspan="4"><font style="font-size: 20px; font-family: 黑体; ">${product.name }</font></td>
    		</tr>
    		<tr align="center">
    			<td><font style="font-size: 12px; color: gray;">
    			           发布人：${product.publisherName } &nbsp;&nbsp;&nbsp;
    			           发布时间：<s:date name="product.createdDate" format="yyyy-MM-dd"/>
    			    <s:if test="%{product.hot == 1}">热门产品</s:if>
    			    </font>
    			</td>
    		</tr>
    		<tr align="center">
    		    <td colspan="4">
    		        <s:iterator var="att" value="product.attachJSON">
    		        	<img width="175px" height="139px" src="<%=ctx%>/attServlet.do?id=<s:property value='#att.get("attId")'/>" />
    		        </s:iterator>
    		    </td>
    		</tr>
    		<tr>
    			<td colspan="4" align="center">
    				${product.brief}
    			</td>
    		</tr>
    		<tr>
    			<td colspan="4" align="center">
    				${product.price }
    			</td>
    		</tr>
    		<tr>
    			<td colspan="4" align="center"><input style="cursor: pointer;" type="button" value="返回" onclick="javascript:history.back(-1);"/></td>
    		</tr>
        </tbody>
    </table>
</div>
